package com.paotui.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.paotui.mapper.UsersAddressMapper;
import com.paotui.pojo.Users_address;
import com.paotui.service.UsersAddressService;
import com.paotui.util.SqlSessionFactoryUtil;
import lombok.Getter;
import org.apache.ibatis.session.SqlSession;
@Getter
public class UsersAddressServiceImpl extends ServiceImpl<UsersAddressMapper, Users_address> implements UsersAddressService {
    SqlSession sqlSession = null;

    @Override
    public UsersAddressMapper getBaseMapper() {
        sqlSession = SqlSessionFactoryUtil.getFactory().openSession(true);
        UsersAddressMapper mapper = SqlSessionFactoryUtil.getFactory().getConfiguration().getMapper(UsersAddressMapper.class,sqlSession);
        return mapper;
    }
}
